Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RSDK-6857] support multiple connections #155

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

npmenard
Copy link
Member

@npmenard npmenard commented Mar 8, 2024

No description provided.

@npmenard npmenard requested a review from a team as a code owner March 8, 2024 19:32
@npmenard npmenard requested a review from acmorrow March 8, 2024 19:32
Copy link
Member

@acmorrow acmorrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM mod some commented out code, and one unimportant question.

}
true
}
// fn last_error(&mut self) -> Option<ServerError> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

@@ -100,7 +100,7 @@ pub async fn serve_web_inner(
exec.clone(),
));

let mut srv = ViamServerBuilder::new(mdns, cloned_exec, client_connector, app_config)
let mut srv = ViamServerBuilder::new(mdns, cloned_exec, client_connector, app_config, 3)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Below, does it matter that the ESP32 and native serve_web functions have diverged, since the ESP32 one now takes the maximum as a parameter and the native one does not?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its fine as long as we don't have a use case for native beyond testing we don't need to polish it too much

@@ -100,7 +100,7 @@ pub async fn serve_web_inner(
exec.clone(),
));

let mut srv = ViamServerBuilder::new(mdns, cloned_exec, client_connector, app_config)
let mut srv = ViamServerBuilder::new(mdns, cloned_exec, client_connector, app_config, 3)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should native be permitted more than 3? Or do you want to keep it the same with the idea that it should be a fairly faithful reproduction of how an ESP32 micro-rdk behaves?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above

Copy link
Member

@gvaradarajan gvaradarajan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well

@npmenard npmenard merged commit 8392f84 into viamrobotics:main Mar 12, 2024
5 checks passed
@npmenard npmenard deleted the RSDK-6857 branch May 5, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants